module.exports = {
// Various Dev Server settings
    devServer: {
        // 本地访问 http://127.0.0.1:8080
        host: '0.0.0.0', // can be overwritten by process.env.HOST
        port: '8080',// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
        https: false,
        // 代理配置表，在这里可以配置特定的请求代理到对应的API接口
        // 例如将'localhost:8080/api/xxx'代理到'www.example.com/api/xxx'
        proxy: {
            '/api': {
                target: 'http://localhost:8081/api',
                changeOrigin: true,
                pathRewrite: {
                    '^/api':''
                }
            }
        }
    }
}